//
//  AppDelegate.h
//  LINNER
//
//  Created by wei wang on 2017/3/30.
//  Copyright © 2017年 weiwang. All rights reserved.
//

#import <UIKit/UIKit.h>

#import <ASSDK/ASSDK.h>
#import <AVFoundation/AVFoundation.h>
#import "EADSessionController.h"


//查询获取eq模式通知
#define GetHEADSETEQ @"GetHEADSETEQ"
#define GetHEADSETBATTERY @"GetHEADSETBATTERY"
#define GetHEADSETVOICE @"GetHEADSETVOICE"
#define GetHEADSETLIGHT @"GetHEADSETLIGHT"
#define GetHEADSETLAGUAGE @"GetHEADSETLAGUAGE"

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@property (nonatomic ,strong)DeviceToConnect *deviceToConnect;

/** lighting是否连接 **/
@property(nonatomic,assign) BOOL lightingConnet;

/** linner是否连接 **/
@property(nonatomic,assign) BOOL linnerConnet;

+ (AppDelegate *)globalDelegate;

/**
 判断放那首歌
 */
- (void)judgeBurnMusicstage;

/** 播放器 **/
@property(nonatomic,strong) AVAudioPlayer *avAudioPlayer;

/* 当前是否在煲机 */
@property(nonatomic,assign) BOOL isBurn;

//播放
- (void)play;
//暂停
- (void)pause;
//停止
- (void)stop;

- (void)update;

/**
 获取时间差
 */
- (void)getNowTimeDifference;

/**
 创建一个定时器Lighting
 */
- (void)setTimeLighting;

/**
 取消
 */
- (void)cancelTimeLighting;


@property (nonatomic, strong) NSMutableArray *accessoryList;
@property (nonatomic, strong) EAAccessory *selectedAccessory;
@property (nonatomic, strong) EADSessionController *eaSessionController;
@property (nonatomic, strong) NSArray *supportedProtocolsStrings;
//模型
@property(nonatomic, strong) EAAccessory *accessory;

/** 获取当前耳机煲机模式 **/
@property(nonatomic,assign) NSInteger burnMode;


/** 获取耳机模式 **/
@property(nonatomic,assign) NSInteger GetheadsetEQ;

/** 获取耳机电量 **/
@property(nonatomic,assign) NSInteger GetheadsetBattery;

/** 获得耳机降噪/监听状态 **/
@property(nonatomic,assign) NSInteger GetheadsetVoice;

/** 获得耳机效果灯 **/
@property(nonatomic,assign) NSInteger GetheadsetLight;

/** 获得耳机语言提示 **/
@property(nonatomic,assign) NSInteger GetheadsetLaugage;

@end

